<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html><head>
<title>hg.app.sendemail</title>
<style>
body {
    background:white;
    margin: 0em 1em 10em 1em;
    color: black;
}

h1 { color: white; background: #4FA4FF; }
h2 { color: white; background: #4FA4FF; }
h3 { color: white; background: #00557F; }
h4 { color: white; background: #00557F; }
    
a { color: #AA5500; }

</style>
</head>
<body><a NAME="top" ID="top"></a>
<h1>hg.app.sendemail</h1>

<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>
<table>
<tr>
<td><a href="#Mailer">Mailer</a></td>
<td></td>
</tr>
</table>
<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>
<hr /><hr />
<a NAME="Mailer" ID="Mailer"></a>
<h2>Mailer</h2>

<h3>Derived from</h3>
None
<h3>Class Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>
<table>
<tr>
<td><a href="#Mailer.__init__">Mailer</a></td>
<td></td>
</tr><tr>
<td><a href="#Mailer.addattach">addattach</a></td>
<td></td>
</tr><tr>
<td><a href="#Mailer.html_body">html_body</a></td>
<td></td>
</tr><tr>
<td><a href="#Mailer.mailfrom">mailfrom</a></td>
<td></td>
</tr><tr>
<td><a href="#Mailer.mailsubject">mailsubject</a></td>
<td></td>
</tr><tr>
<td><a href="#Mailer.mailto">mailto</a></td>
<td>mail_to : comma separated emails</td>
</tr><tr>
<td><a href="#Mailer.send">send</a></td>
<td></td>
</tr><tr>
<td><a href="#Mailer.text_body">text_body</a></td>
<td></td>
</tr>
</table>
<a NAME="Mailer.__init__" ID="Mailer.__init__"></a>
<h4>Mailer (Constructor)</h4>
<b>Mailer</b>(<i>smtp_host, smtp_user, smtp_passwd, smtp_port = 25</i>)
<a NAME="Mailer.addattach" ID="Mailer.addattach"></a>
<h4>Mailer.addattach</h4>
<b>addattach</b>(<i>filepath, mime_type = 'octect-stream', rename = None</i>)
<a NAME="Mailer.html_body" ID="Mailer.html_body"></a>
<h4>Mailer.html_body</h4>
<b>html_body</b>(<i>body, encoding = 'utf-8'</i>)
<a NAME="Mailer.mailfrom" ID="Mailer.mailfrom"></a>
<h4>Mailer.mailfrom</h4>
<b>mailfrom</b>(<i>mail_from</i>)
<a NAME="Mailer.mailsubject" ID="Mailer.mailsubject"></a>
<h4>Mailer.mailsubject</h4>
<b>mailsubject</b>(<i>mail_subject</i>)
<a NAME="Mailer.mailto" ID="Mailer.mailto"></a>
<h4>Mailer.mailto</h4>
<b>mailto</b>(<i>mail_to</i>)
<p>
        mail_to : comma separated emails
</p><a NAME="Mailer.send" ID="Mailer.send"></a>
<h4>Mailer.send</h4>
<b>send</b>(<i></i>)
<a NAME="Mailer.text_body" ID="Mailer.text_body"></a>
<h4>Mailer.text_body</h4>
<b>text_body</b>(<i>body, encoding = 'utf-8'</i>)

<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>